/**
  * Author: Mei
  * Date: 2020-12-02 14:44
  * Description: 
  *
  */
#include <iostream>
#include <memory>
using namespace std;
int main() {
    std::unique_ptr<int> foo(new int(20));                // null
    foo.reset(new int(30));

    cout << *foo << endl;
    cout << *(foo.get()) << endl;


    return 0;
}